﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="tin-tuc-danh-sach-chuyen-muc.ascx.cs" Inherits="UserControl_tin_tuc_danh_sach_chuyen_muc" %>
<div class="contentRight" style="float: left;">
    <div class="spaces">
        <h1 style="text-transform: uppercase;">
            <%--<asp:Literal ID="ltrTitle" runat="server"></asp:Literal>--%>
            <%=strTenCM %>
        </h1>
    </div>

    <div class="lstPhongTro">

        <div class="news-noibat">
            <%=clsExportHtml.fncExportOnlyOne(clsTinTuc.TinTuc_FND(OsPortal.oStringHelper.fncCnvNullToInt(strTrang)
            ,1
            ,""
            ,""
            ,OsPortal.oStringHelper.fncCnvNullToString(strChuyenMuc)
            ,-1
            ,-1
            ,0).Tables[0])%>
        </div>

        <ul id="lstNews" class="lst-News">
            <%=clsExportHtml.fncExportTinTucDanhSach(clsTinTuc.TinTuc_FND(OsPortal.oStringHelper.fncCnvNullToInt(strTrang)
            ,basConst.PROC_NUMBER
            ,""
            ,""
            ,OsPortal.oStringHelper.fncCnvNullToString(strChuyenMuc)
            ,-1
            ,-1
            ,0).Tables[0])%>
        </ul>
        <div class="clr"></div>
    </div>
    <div class="load-more">
        <img id="loader" class="loading" alt="" src="/images/system/loading.gif" style="display: none" />
        <a href="javascript:void(0)" onclick="GetRecordsNews()" id="btnLoadMore">Lấy thêm</a>
    </div>

</div>

<!---------------------------- RIGHT CONTROL ---------------------------->
<div class="contentLeft" style="float: right;">
    <div class="box-left">
        <h4 class="title-left">Tin tức nổi bật</h4>
        <ul id="newNoiBat" class="module_news">
            <%=clsExportHtml.fncExportLeft_NoiBat(clsTinTuc.TinTuc_FND(1,10,"","","",1,1,2).Tables[0])%>
        </ul>
        <div class="clr"></div>
        <%--<img id="loadNB" class="loading" alt="" src="/Images/System/loading.gif" style="margin: 10px; text-align: center;" />--%>
        <!--------------------------------------------------->
        <h4 class="title-left">Tin mới đăng</h4>
        <ul id="newsTop" class="module_news">

        </ul>
        <div class="clr"></div>
        <img id="loadTT" class="loading" alt="" src="/Images/System/loading.gif" style="margin: 10px; text-align: center;" />
    </div>
    <%=OsPortal.oFileHelper.ReadFile(basConst.LinkQuangCao_LEFT) %>
    <%=clsExportHtml.fncExportControlTopNews20(clsPhongTro.PhongTro_FND(1, 20, "", 0, 0, "", "", "",2).Tables[0]) %>
</div>
<!--------------------------- END RIGHT CONTROL ------------------------->

<input id="hd_iCurrPage" type="hidden" runat="server" />
<input id="hd_ChuyenMuc" type="hidden" runat="server" />
<script type="text/javascript">
    var iCurrPage = $('#<%=hd_iCurrPage.ClientID%>').val();
    var pageSize = <%=basConst.PROC_NUMBER%>; //Số lượng tin tức / 1 trang
    var strChuyenMuc = $('#<%=hd_ChuyenMuc.ClientID%>').val();
</script>
<script src="/Scripts/tin-tuc-danh-sach.js"></script>
